package cn.itcast.cd.domain;

import java.math.BigDecimal;
/**
 * 产品
 * 
 * @author ssvfhppl
 * 
 */
public class Product {
	@Override
	public String toString() {
		return "Product [sn=" + sn + ", dir=" + dir + ", id=" + id + ", num="
				+ num + ", name=" + name + ", price=" + price + "]";
	}

	//产品SN
	private String sn;
	
	//进价
	//private Double costPrice;

	//产品的目录
	private ProductDir dir;

	
	private Long id;
	//产品的介绍
	private Integer num;

	private String name;
	
	private Double price;
	
	//部品卖价
	//private Double salePrice;

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public ProductDir getDir() {
		return dir;
	}

	public void setDir(ProductDir dir) {
		this.dir = dir;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

}
